package cn.tedu.supermarket.entity;

import java.io.Serializable;

public class ChangeUser implements Serializable {
    private int id;
    private String username;
    private String mailIndex;
    private String password1;
    private String password2;
    private String captcha;

    public ChangeUser() {
    }

    public ChangeUser(int id, String username, String mailIndex, String password1, String password2, String captcha) {
        this.id = id;
        this.username = username;
        this.mailIndex = mailIndex;
        this.password1 = password1;
        this.password2 = password2;
        this.captcha = captcha;
    }

    public String getPassword1() {
        return password1;
    }

    public void setPassword1(String password1) {
        this.password1 = password1;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMailIndex() {
        return mailIndex;
    }

    public void setMailIndex(String mailIndex) {
        this.mailIndex = mailIndex;
    }


    public String getPassword2() {
        return password2;
    }

    public void setPassword2(String password2) {
        this.password2 = password2;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    @Override
    public String toString() {
        return "ChangeUser{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", mailIndex='" + mailIndex + '\'' +
                ", password1='" + password1 + '\'' +
                ", password2='" + password2 + '\'' +
                ", captcha='" + captcha + '\'' +
                '}';
    }
}